package com.work.mdass.util;

import com.work.mdass.domain.OrderApply;
import com.work.mdass.domain.Result;

public class OrderApplyResultUtil {
	
	public static Result<OrderApply> success(OrderApply orderApply){
		
		Result<OrderApply> result = new Result<OrderApply>();
		
		result.setCode(0);
		result.setMsg("成功");
		result.setData(orderApply);
		
		return result;
	}
	
	public static Result<OrderApply> success(){
		return null;
	}
	public static Result<OrderApply> error(Integer code,String msg) {
		
		Result<OrderApply> result = new Result<OrderApply>();
		result.setCode(code);
		result.setMsg(msg);
		return result;
	}
		
}
